package org.fkjava.oa.identity.dao.impl;

import java.util.List;
import java.util.Map;

import org.fkjava.common.dao.impl.BaseDaoImpl;
import org.fkjava.oa.identity.dao.DeptDao;
import org.springframework.stereotype.Repository;

/**
 * @author xlei
 * @Email dlei0006@163.com
 * @QQ 251425887
 * @Tel 18665616520
 * @Date 2017年1月14日上午9:44:47
 * @From http://www.fkjava.org 
 *
 */
public class DeptDaoImpl extends BaseDaoImpl implements DeptDao {

	@Override
	public List<Map<String, Object>> selectDepts() throws Exception {
		// Hibernate : 查谁找谁！
		return find("select new Map(p.id as code , p.name as name) from Dept p");
	}
	
}







